<template>
    <a-config-provider :locale="locale">
        <div>
            <router-view></router-view>
        </div>
    </a-config-provider>
</template>

<script>
    import zhCN from 'ant-design-vue/lib/locale-provider/zh_CN';
    import adminLogo from '@/assets/image/icon1.png'
    import Icon1 from '@/assets/image/icon2.png'
    import Icon2 from '@/assets/image/icon3.png'
    import Icon3 from '@/assets/image/icon4.png'
    import Icon4 from '@/assets/image/icon5.png'
    import Icon5 from '@/assets/image/icon6.png'
    export default {
        data() {
            return {
                collapsed: false,
                adminLogo:adminLogo,
                icon1:Icon1,
                icon2:Icon2,
                icon3:Icon3,
                icon4:Icon4,
                icon5:Icon5,
                locale: zhCN
            };
        },

        methods: {
            toStulist() {
                this.$router.push('/stulist')
            },
            // saveVuex(){
            //     sessionStorage.setItem("vuex",JSON.stringify(this.$store.state.access));
            // }
        }
        // mounted() {
        //     window.addEventListener('unload',this.saveVuex);
        //     window.addEventListener('load',()=>{
        //         if(sessionStorage.getItem("vuex")!=null){
        //             this.$store.commit("GET_VUEX",JSON.parse(sessionStorage.getItem("vuex")));
        //             sessionStorage.clear();
        //         }
        //     })
        // }
    };
</script>

<style>
    /*.index_system_name{*/
    /*  font-weight: bolder;*/
    /*  font-size: 1.2em;*/
    /*  margin-right: 1em;*/
    /*}*/
    /*.index_admin_box{*/
    /*  display: flex;*/
    /*  justify-content: center;*/
    /*  border-bottom: #ECECEC 1px solid;*/
    /*  margin: 1em 0;padding: 1.5em 0;*/
    /*}*/
    /*.index_admin_logo{*/
    /*  width: 3em;*/
    /*  height: 3em;*/
    /*}*/
    /*.index_admin_text{*/
    /*  font-weight: bolder;*/
    /*  margin-left: 1em;*/
    /*  display: flex;*/
    /*  justify-content: center;*/
    /*  line-height: 2em;*/
    /*}*/
    /*.index_side_icon{*/
    /*  max-width: 2em;*/
    /*  max-height: 2em;*/
    /*  margin-right: 2em;*/
    /*}*/
    /*.index_side_bar{*/
    /*  width: 20em;*/
    /*  display: flex;*/
    /*  flex-wrap: wrap;*/
    /*  justify-content:center;*/
    /*}*/
    /*.index_side_text{*/
    /*  width: 5em;*/
    /*  !*让span的宽度生效*!*/
    /*  display: inline-block;*/
    /*}*/
    /*.index_side_text_cur{*/
    /*  margin-right: 1em;*/
    /*}*/
    /*#app {*/
    /*  font-family: Avenir, Helvetica, Arial, sans-serif;*/
    /*  -webkit-font-smoothing: antialiased;*/
    /*  -moz-osx-font-smoothing: grayscale;*/
    /*  text-align: center;*/
    /*  color: #2c3e50;*/
    /*  !*margin-top: 60px;*!*/
    /*}*/
    /*#components-layout-demo-side .logo {*/
    /*  height: 32px;*/
    /*  background: rgba(255, 255, 255, 0.2);*/
    /*  margin: 16px;*/
    /*}*/
</style>
